/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.controller;

import io.renren.common.utils.Result;
import io.renren.dto.SysDeptDTO;
import io.renren.entity.SysDeptEntity;
import io.renren.service.SysDeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 部门管理
 * 
 * @author Mark sunlightcs@gmail.com
 */
@RestController
@RequestMapping("/sys/dept")
@Api(tags="部门管理")
public class SysDeptController {
	@Autowired
	private SysDeptService sysDeptService;


	@GetMapping("getDeptName")
	@ApiOperation("信息")
	public Result<SysDeptDTO> getDeptName(Long deptId){
		SysDeptDTO data = sysDeptService.getDeptName(deptId);

		return new Result<SysDeptDTO>().ok(data);
	}


}